﻿<@override name="head">
<title>账号管理</title>
<script type="text/javascript" src="${ctx}/assets/js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/lib/bootbox.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/common/table.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/advertiser/authority.js"></script>
</@override>
<@override name="body">
<div id=content_bg>
<#include "/main/home/common.ftl"/>
    <div id= "pagecontent">
    	<div id="content">
   			<div id="navDiv">
				<ul id="navDiv_ul">
					<li><i class="icon-home"></i></li>
					<li><a href="${ctx}/advertiser/main/dashboard">首页</a></li>
					<li><i class="icon-angle-right"></i></li>
				    <li class="navDiv_currentLi">权限管理</li>
				</ul>  
 			</div>
 			<form id="myform" action="${ctx}/advertiser/main/authority/list" method="post">
 				<div id="navButtons">
					<div id="button">		
						<a href="${ctx}/advertiser/main/authority/create" class="btn2">创建账号</a>
						<a class="btn2" id="all-btn-enable">批量开启</a>
						<a class="btn2" id="all-btn-disable">批量暂停</a>
					</div>
					<div id="searchValueDiv">
						<input type="hidden" id="page" name="page" value="${pager.page}"/>
						<input id="searchValue" type="text" name="searchValue" value="${searchValue!}" tabindex="1" placeholder="请输入账号"/>
						<input id="serachData_img" type="submit" value=""/>
					</div>
				</div>
				<table border="1" class="tableFig">
					<thead>
						<tr class="theadTr">
							<th class="theadTh" style="width:5%;"><div class="checkboxStyleTh"></div></th>
							<th class="theadTh" style="width:5%;">ID</th>
							<th class="theadTh" style="width:20%;">账号</th>
							<th class="theadTh" style="width:10%;">姓名</th>
							<th class="theadTh" style="width:15%;">联系电话</th>
							<th class="theadTh" style="width:5%;">状态</th>
							<th class="theadTh" style="width:15%;">最后登录时间</th>
							<th class="theadTh" style="width:25%;">操作</th>
						</tr>
				    </thead>
				    <tbody>
						<#if accountList ??>
				        <#list accountList as account>
				        <tr id="tbodyTr">
							<td class="tbodyTd"><div class="checkboxStyleTd" id="${account.id!}"></div></td>
							<td class="tbodyTd">${account.id!}</td>
							<td class="tbodyTd">${account.accountName!}</td>
							<td class="tbodyTd">${account.realName!}</td>
							<td class="tbodyTd">${account.tel!}</td>
							<td class="tbodyTd"><#if account.state=="1">正常<#else>暂停</#if></td>
							<td class="tbodyTd">${account.createTime!?datetime}</td>
							<td class="tbodyTd">
								<div id="listButtons">
									<a href="${ctx}/advertiser/main/authority/edit?accountId=${account.id!}" class="btn3">编辑</a>
									<#if account.state=="0">
									<a id="btn-enable" value="${account.id!}" class="btn3">开启</a>
									<#elseif account.state=="1">
									<a id="btn-disable" value="${account.id!}" class="btn3">暂停</a>
									</#if>
								</div>
							</td>
						</tr>
				        </#list>
						</#if>           
				    </tbody>
				</table>
				<div id="exportReport">
					<a id="exportExcel" class="btn_export" href="javascript:void(0);" onclick="exportExcel()">导出Excel</a>
				</div>
				<div id="pageDiv">
					<#include "/common/pagination/simple.ftl"/>
				</div>
 			</form>
		</div>
	</div>
</div>
</@override>
<@extends name="/common/simple.ftl"/>